package com.fjxd.plane.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fjxd.feign.pojo.FlightNumber;
import com.fjxd.feign.pojo.vo.HotCityVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Plane {
//    id	int
//    a_id  int
//    serial	varchar
//    name	varchar
//    Take_number	int
//    first_class	int
//    business_class	int
//    economy_class	int


    private Integer id;//飞机id
    private Integer aId;//航空公司id
    private String serial;//飞机编号
    private String name;//飞机名称
    private Integer takeNumber;//乘坐人数
    private Integer firstClass;//头等舱人数
    private Integer businessClass;//商务舱人数
    private Integer economyClass;//经济舱人数
    private Integer speed;//飞行速度
    @TableField(exist=false)
    private Airlines airlines;//航空公司
    @TableField(exist = false)
    private List<FlightNumber> flightNumber;




    public Plane(String serial, String name, int takeNumber, int firstClass, int businessClass, int economyClass, int speed) {
        this.serial = serial;
        this.name = name;
        this.takeNumber = takeNumber;
        this.firstClass = firstClass;
        this.businessClass = businessClass;
        this.economyClass = economyClass;
        this.speed = speed;
    }

    public Plane(String serial, int aId,String name, int takeNumber, int firstClass, int businessClass, int economyClass,Airlines airlines, int speed) {
        this.serial = serial;
        this.aId = aId;
        this.name = name;
        this.takeNumber = takeNumber;
        this.firstClass = firstClass;
        this.businessClass = businessClass;
        this.economyClass = economyClass;
        this.airlines = airlines;
        this.speed = speed;
    }
}
